import { get } from "@/request";

//获取首页轮播图数据
export function getBanner() {
    return get('/banner', {
       type: 2
    })
}

//获取发现好歌单
export function getMusicList() {
    return get('/personalized', {
        limit: 10
    })
}

//搜索
export function getSearchMusic(keywords) {
    return get('/search',{
        keywords: keywords,
    })
}

//登录接口  /login/cellphone?phone=xxx&password=yyy   /login?email=xxx@163.com&password=yyy
export function getPhoneLogin(data) {
    return get('/login/cellphone', data)
}

//用户详情 /user/detail?uid=32953014
export function getLoginUser(uid) {
    return get('/user/detail', {
        uid,
    })
}